package net.stogi.common.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDao<E, ID extends Serializable> {

	void delete(E entity);

	void evict(E entity);

	List<E> loadAll();

	List<E> loadByExample(E exampleEntity);

	E loadById(ID id, boolean lock);

	void save(E entity);
}
